<template>
  <router-view />
</template>

<script>
import { mapState } from "vuex";

export default {
  mounted() {
    if(this.time > 0) {
      this.$store.commit("exam/setTimeDown")
    }
  },
  computed: {
    ...mapState("exam",{
      time: (state) => {
        return state.time
      }
    })
  }
}
</script>

<style lang="scss">
body {
  margin: 0;
  padding: 0;
}
</style>
